



//
//  MBReleaseHouseModel.m
//  发布求租
//
//  Created by MB__Lee on 2018/6/9.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "MBReleaseHouseModel.h"

@implementation MBReleaseHouseModel

-(void)MBJsonString{
    
    if (self.characteristic.count) {
        
        self.characteristicJSON =  [self MBJSON_WithArr:self.characteristic];
    }
    if (self.subsidiary.count) {
        
        self.subsidiaryJSON = [self MBJSON_WithArr:self.subsidiary];
    }
    if (self.img_item.count) {
        
        self.img_itemJSON = [self MBJSON_WithArr:self.img_item];
    }
    
    
    
    
}



-(NSString *)MBJSON_WithArr:(NSArray *)arr{
    
    NSData *jsonData = [NSJSONSerialization dataWithJSONObject:arr options:NSJSONWritingPrettyPrinted error:nil];
    
    NSString *str  =[[NSString alloc] initWithData:jsonData encoding:4];
    return  str;
    
}


@end
